package me.liuyu.ymall.member.oauth.DO;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 会员登录信息
 * </p>
 *
 * @author liuyu
 * @since 2018-06-07
 */
@TableName("security_info")
public class SecurityInfo extends Model<SecurityInfo> {

    private static final long serialVersionUID = 1L;

	private Long id;
	private String username;
	@TableField("password_")
	private String password;
	private Integer mobile;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getMobile() {
		return mobile;
	}

	public void setMobile(Integer mobile) {
		this.mobile = mobile;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "SecurityInfo{" +
			"id=" + id +
			", username=" + username +
			", password=" + password +
			", mobile=" + mobile +
			"}";
	}
}
